package com.leapp.sk.ui.activity.task

import android.os.Bundle
import com.example.mvp.activity.BaseActivityMVP
import com.example.mvp.binder.BaseDataBinder
import com.leapp.sk.R
import com.leapp.sk.bean.CompleteTaskEntity
import com.leapp.sk.binder.BaseBinder
import com.leapp.sk.viewdelegate.task.TaskDetialDelegate

/**
 * 作业详情
 * @author  chaohaipeng  on 2018/8/9.
 */
class TaskDetialActivity:BaseActivityMVP<TaskDetialDelegate>() {
    override fun initDate() {
        viewDelegate.initFlowerCount(this,3)

        val mutableListOf = mutableListOf<CompleteTaskEntity>()
        val completeTaskEntity = CompleteTaskEntity()
        completeTaskEntity.type=2
        val completeTaskEntity1 = CompleteTaskEntity()
        completeTaskEntity1.type=2
        val completeTaskEntity2 = CompleteTaskEntity()
        completeTaskEntity2.type=2
        mutableListOf.add(completeTaskEntity)
        mutableListOf.add(completeTaskEntity1)
        mutableListOf.add(completeTaskEntity2)
        viewDelegate.initAdapter(mutableListOf,false)
    }

    override fun bindEvenListener() {
    }

    override fun getDelegateClass(): Class<TaskDetialDelegate> {
        return TaskDetialDelegate::class.java
    }

    override fun getDataBinder(): BaseDataBinder<*, *> {
        return BaseBinder()
    }

    override fun initView(p0: Bundle?) {
        viewDelegate.setTitle(resources.getString(R.string.string_task_detial))
    }
}